<!--# layout("/common/layout.html",{"jsBase":"/js/admin/user/"}){ -->

<form class="layui-form layui-form-pane" id="updateForm">
	<div class="layui-row">
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">用户姓名<em style="color: red;">*</em></label>
				<div class="layui-input-inline">
					<input type="text" name="userName" autocomplete="off"
						placeholder="请输入标题" class="layui-input" value="${user.userName}" lay-verify="required">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">帐号<em style="color: red;">*</em></label>
				<div class="layui-input-inline">
					<input type="number" name="code" disabled lay-verify="phone"
						   placeholder="手机号作为帐号登录" autocomplete="off" class="layui-input"
						   value="${user.code}">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">选择角色<em style="color: red;">*</em></label>
				<div class="layui-input-inline">
					<layui:roleInput id="roleId" name="roleId" type="R0" value="${user.roleId}"/>
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">所在事业部<em style="color: red;">*</em></label>
				<layui:orgInput style='layui-input-inline' name="orgId" id="orgId"
								value="${user.orgId}"></layui:orgInput>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">用户状态</label>
				<layui:simpleDictSelect style='layui-input-inline' type="user_state"
										id="state" name="status" value="${user.status}" />
			</div>
		</div>
	</div>

	<layui:submitButtons id="saveUser" />
	<input type="hidden" name="id" value=${user.id} />
</form>
<!--#} -->
<script>
layui.use(['edit'], function(){
  var userEdit = layui.edit
  userEdit.init();
});

</script>

